package vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;
import javax.swing.JButton;

import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;

import controlador.ControladorVentanaUsuario;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class VentanaUsuario extends javax.swing.JFrame {
	private JPanel jPanel1;
	private JButton jBotonaceptar;
	private JTextField jTextcoordinador;
	private JLabel lblcoordinador;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VentanaUsuario inst = new VentanaUsuario();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public VentanaUsuario() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			{
				jPanel1 = new Fondo("imagen.jpg");
				getContentPane().add(jPanel1, BorderLayout.CENTER);
				jPanel1.setLayout(null);
				jPanel1.setPreferredSize(new java.awt.Dimension(395, 171));
				{
					lblcoordinador = new JLabel();
					jPanel1.add(lblcoordinador);
					lblcoordinador.setText("Cedula / Codigo de Coordinador :");
					lblcoordinador.setBounds(29, 70, 237, 16);
					lblcoordinador.setFont(new java.awt.Font("SansSerif",1,12));
				}
				{
					jTextcoordinador = new JTextField();
					jPanel1.add(jTextcoordinador);
					jTextcoordinador.setBounds(226, 67, 126, 23);
				}
				{
					jBotonaceptar = new JButton();
					jPanel1.add(jBotonaceptar);
					jBotonaceptar.setText("Aceptar");
					jBotonaceptar.setBounds(167, 114, 69, 27);
				}
			}
			pack();
			this.setSize(411, 230);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}
	
	public String getCoordinador(){
		return jTextcoordinador.getText();
	}
	public JButton getBotonModificar()
	{
		return jBotonaceptar;
	}
	
	public void agregarListener(ActionListener accion){
	this.jBotonaceptar.addActionListener(accion);
	}

}
